solving for the quartile